package com.study.design.model.structPattern.composite.example;

/**
* @Name: TextFile
* @Description: 叶子组件：文本文件
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-11 上午11:30:07 
* @Version: V1.0
 */
public class TextFile implements AbstractFile {

	private String name ;

	public TextFile(String name) {
		this.name = name;
	}

	@Override
	public void killVirus() {
		System.out.println("--文本文件:" + name + ",进行查杀！");
	}
}
